﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Sunboxsoft.ASMS.Server.Domain.Entity
{
    /// <summary>
    /// 套餐购买单
    /// </summary>
    public class EPackagePurchaseBill
    {
        public Guid Id { get; set; }

        /// <summary>
        /// 单据号
        /// </summary>
        public string Number { get; set; }

        /// <summary>
        /// 客户编号
        /// </summary>
        public Guid CustomerId { get; set; }

        /// <summary>
        /// 套餐编号
        /// </summary>
        public Guid PackageId { get; set; }

        /// <summary>
        /// 下单日期
        /// </summary>
        public DateTime BoughtDate { get; set; }

        /// <summary>
        /// 购买方式
        /// </summary>
        public string BoughtChannel { get; set; }

        /// <summary>
        /// 购买价格
        /// </summary>
        public decimal BoughtPrice { get; set; }

        /// <summary>
        /// 购买于什么商家
        /// </summary>
        public Guid? BusinessId { get; set; }

        /// <summary>
        /// 购买于哪个店铺
        /// </summary>
        public Guid? StationId { get; set; }

        /// <summary>
        /// 支付金额
        /// </summary>
        public decimal? PaidAmount { get; set; }

        /// <summary>
        /// 支付时间
        /// </summary>
        public DateTime? PaidTime { get; set; }

        /// <summary>
        /// 销售经理
        /// </summary>
        public Guid? SalesManagerId { get; set; }

        public decimal SalesCommissionAmount { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string Memo { get; set; }

        /// <summary>
        /// 票据类型
        /// </summary>
        public string InvoiceType { get; set; }

        /// <summary>
        /// 票据编号
        /// </summary>
        public string InvoiceNumber { get; set; }
        /// <summary>
        /// 收银员
        /// </summary>
        public string Cashier { get; set; }

        public int Status { get; set; }

        public string Creator { get; set; }

        public DateTime CreatedTime { get; set; }
    }
}
